/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ems.entity;

import java.util.List;
import java.util.Map;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 报名管理Entity
 * @author zad
 * @version 2017-10-16
 */
public class Join extends DataEntity<Join> {
	
	private static final long serialVersionUID = 1L;
	//private String orderId;		// 订单id
	private String register;		// 报名人姓名
	private String joiner;		// 选手姓名
	
	private List<Map<String,String>> joinerList; // 用于批量操作处理
	
	// private String courseId;		// 课程编号
	private String groupType;		// 组别
	private String groupTypeName;		// 组别名称
	
	private String joinType;		// 参赛方式
	private String joinTypeName;		// 参赛方式名称
	
	private String bigCategory;		// 参赛大类
	private String bigCategoryName;		// 参赛大类名称
	
	private String smallCategory;		// 参赛小类
	private String smallCategoryName;		// 参赛小类名称
	
	private String school;		// 推选学校
	private String mobile;		// 报名人电话
	
	// 订单信息
	private Order order;
	// 课程信息
	private Course course;
	// 奖品信息
	private Award award;
	
	public Join() {
		super();
	}

	public Join(String id){
		super(id);
	}

	/*@Length(min=1, max=64, message="订单id长度必须介于 1 和 64 之间")
	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}*/
	
	@Length(min=1, max=32, message="报名人姓名长度必须介于 1 和 32 之间")
	public String getRegister() {
		return register;
	}

	public void setRegister(String register) {
		this.register = register;
	}
	
	@Length(min=1, max=255, message="选手姓名长度必须介于 1 和 255 之间")
	public String getJoiner() {
		return joiner;
	}

	public void setJoiner(String joiner) {
		this.joiner = joiner;
	}
	
	/*@Length(min=1, max=64, message="课程编号长度必须介于 1 和 64 之间")
	public String getCourseId() {
		return courseId;
	}

	public void setCourseId(String courseId) {
		this.courseId = courseId;
	}*/
	
	@Length(min=1, max=2, message="组别长度必须介于 1 和 2 之间")
	public String getGroupType() {
		return groupType;
	}

	public void setGroupType(String groupType) {
		this.groupType = groupType;
	}
	
	@Length(min=1, max=2, message="参赛方式长度必须介于 1 和 2 之间")
	public String getJoinType() {
		return joinType;
	}

	public void setJoinType(String joinType) {
		this.joinType = joinType;
	}
	
	@Length(min=1, max=8, message="参赛大类长度必须介于 1 和 8 之间")
	public String getBigCategory() {
		return bigCategory;
	}

	public void setBigCategory(String bigCategory) {
		this.bigCategory = bigCategory;
	}
	
	@Length(min=1, max=8, message="参赛小类长度必须介于 1 和 8之间")
	public String getSmallCategory() {
		return smallCategory;
	}

	public void setSmallCategory(String smallCategory) {
		this.smallCategory = smallCategory;
	}
	
	@Length(min=1, max=64, message="推选学校长度必须介于 1 和 64 之间")
	public String getSchool() {
		return school;
	}

	public void setSchool(String school) {
		this.school = school;
	}
	
	@Length(min=1, max=32, message="报名人电话长度必须介于 1 和 32 之间")
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Order getOrder() {
		return order;
	}

	public void setOrder(Order order) {
		this.order = order;
	}

	public Course getCourse() {
		return course;
	}

	public void setCourse(Course course) {
		this.course = course;
	}

	public List<Map<String, String>> getJoinerList() {
		return joinerList;
	}

	public void setJoinerList(List<Map<String, String>> joinerList) {
		this.joinerList = joinerList;
	}

	public String getGroupTypeName() {
		return groupTypeName;
	}

	public void setGroupTypeName(String groupTypeName) {
		this.groupTypeName = groupTypeName;
	}

	public String getJoinTypeName() {
		return joinTypeName;
	}

	public void setJoinTypeName(String joinTypeName) {
		this.joinTypeName = joinTypeName;
	}

	public String getBigCategoryName() {
		return bigCategoryName;
	}

	public void setBigCategoryName(String bigCategoryName) {
		this.bigCategoryName = bigCategoryName;
	}

	public String getSmallCategoryName() {
		return smallCategoryName;
	}

	public void setSmallCategoryName(String smallCategoryName) {
		this.smallCategoryName = smallCategoryName;
	}

	public Award getAward() {
		return award;
	}

	public void setAward(Award award) {
		this.award = award;
	}

	
}